import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";

export default defineUniPages({
  globalStyle: {
    navigationStyle: "default",
    navigationBarTitleText: "unibest",
    navigationBarBackgroundColor: "#f8f8f8",
    navigationBarTextStyle: "black",
    backgroundColor: "#FFFFFF",
    h5: {
      navigationStyle: "custom",
    },
  },
  easycom: {
    autoscan: true,
    custom: {
      "^sa-(.*)-(.*)": "@/components/$1/$2.uvue",
      "^sa-(.*)": "@/components/$1/index.uvue",
      "^layout-(.*)-uni": "@/layouts/$1.uvue",
    },
  },
  tabBar: {
    color: "#999999",
    selectedColor: "#018d71",
    backgroundColor: "#F8F8F8",
    borderStyle: "black",
    height: "50px",
    fontSize: "10px",
    iconWidth: "24px",
    spacing: "3px",
    list: [
      {
        // iconPath: 'static/tabbar/home.png',
        // selectedIconPath: 'static/tabbar/homeHL.png',
        pagePath: "pages/index/index",
        text: "首页",
      },
      {
        // iconPath: 'static/tabbar/example.png',
        // selectedIconPath: 'static/tabbar/exampleHL.png',
        pagePath: "pages/demo/index",
        text: "示例",
      },
    ],
  },
});
